<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="style/bootstrap.min.css" />
	<style type="text/css">
		body{
			padding-top:70px;
			background-image:url(img/ab.png);
		}
	</style>
	
</head>
<body class="body">
	
	<%@ include file="top.jsp" %>
	<%@ include file="leftlabel.jsp" %>
		<div class="span6">
		  
		  	<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;">
				<li class="active">
					<i class="icon-th"></i>你在想什么？
				</li>
			</ul>
			<div class="wall">
				<form style="margin:0px" method="post" action="addmessage.action">
					<textarea name="message.content" id="messagecontent" style="width:460px" rows="3" placeholder="#你想说点什么#"></textarea>
					<button class="btn btn-primary">发布</button>
				</form>
			</div>
			
			 <ul class="breadcrumb"
				style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:20px">
				<li class="active"><i class="icon-th"></i>@关于我的</li>
				<div id="info" class="wall">
					<c:forEach items="${atmessageList}" var="atmessage">
						<blockquote>
							${atmessage.message.user.username}<small>
							${atmessage.message.content}<small>
								发布于${atmessage.message.createtime} <br />
						</blockquote>
					</c:forEach>
				</div>
			</ul>

			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:20px">
				<li class="active">
					<i class="icon-th"></i>信息流
				</li>
					<div class="wall">
					<c:forEach items="${messageList}" var="message">
						<blockquote>
								${message.user.username}:${message.content} <small>
								发布于${message.createtime} 
								<br/>	
						</blockquote>
						</c:forEach>	
					</div>
			</ul>
			
		</div>
		<div class="span3">
			<div class="box">
				<div class="head">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;我的任务</div>
				<c:if test="${fn:length(taskList) == 0}" >
  				<div style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					还没有给你分配任务					
  				</div>
  				</c:if>
				
				<c:forEach items="${taskList}" var="task">
				<ul>
					<li><a href="edittask.action?id=${task.id}">${task.taskname}</a></li>
				</ul>
				</c:forEach>
			</div>
		</div>
	  </div>
	</div>
</body>
</html>